package com.gxnzd.communityelderly.service;

import com.gxnzd.communityelderly.commom.R;
import com.gxnzd.communityelderly.entity.DrugLibrary;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gxnzd.communityelderly.entity.Prescribe;

import java.util.List;

/**
* @author 23234
* @description 针对表【drug_library】的数据库操作Service
* @createDate 2024-10-22 20:44:25
*/

public interface DrugLibraryService extends IService<DrugLibrary> {

    R getLibraryList(Integer page, Integer pageSize,Long drugsId, Long communityId);
    R bePutInStorage(List<DrugLibrary> drugLibraryList);
    R setDrugLibrary(List<Prescribe> reqDrugInfoList, Integer communityId);
    R selectKeyword(String drugsName, Long communityId);

    R modifyInventory(DrugLibrary drugLibrary);

    R clearInventory(Integer drugsId,Integer communityId);

    R getDugrLibraryDInfo(Long communityId,Long drugsId);
}
